﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace _038
{
    internal class Program
    {
        static void Main(string[] args)
        {
            try
            {
                int a = 123;
                int b = 0;
                int x = a / b;
            }
            catch(Exception e)
            {
                Console.WriteLine("捕获到的异常：{0}",e);
            }
            finally
            {
                Console.WriteLine("finally语句块中的代码");
            }
            Console.WriteLine("程序中的其他代码");
            Console.ReadKey();
        }
    }
}
